package com.sxj.corejava.code16_单例模式;

public class Test02_懒汉模式 {

    public static void main(String[] args) {
        OtherBean otherBean = OtherBean.getInstance();
        OtherBean otherBean2 = OtherBean.getInstance();
        System.out.println(otherBean2 == otherBean);
    }

}
